import request from '@/utils/request'

//查询订单列表
export function getOrderList(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/page',
    method: 'post',
    data
  })
}

//查询订单详情
export function getOrderDetail(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/getOrderDetail',
    method: 'post',
    data
  })
}

//查询保单详情
export function getInsuranceDetail(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/getInsuranceDetail',
    method: 'post',
    data
  })
}

//更新订单
export function updateOrder(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/updateOrder',
    method: 'post',
    data
  })
}

//更新保单
export function updateInsurance(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/updateInsurance',
    method: 'post',
    data
  })
}

//删除保单
export function deleteInsurance(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/deleteInsurance',
    method: 'post',
    data
  })
}

//删除订单
export function deleteOrder(data) {
  return request({
    url: '/sys/orderController/orderManage/orderManage/deleteOrder',
    method: 'post',
    data
  })
}

//打包下载图片
export function downloadZip(url) {
  return request({
    url: '/common/fileApi/downloadFile?url='+url,
    method: 'get',
		// params : {url}
  })
}